<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>Login</title>
	
<script type="text/javascript" src="jquery.js"> </script>		
<script type="text/javascript" src="prototype.js"> </script>

	<script type="text/javascript">
	    var djConfig = {
	        isDebug:true, parseOnLoad:true
	    };
	</script>
	<script type="text/javascript" src="dojoroot/dojo/dojo.js">
	</script>
	
	<script type="text/javascript">
		//dojo.require("dojo.parser");  
	</script>

	<!-- import dojo component -->
	<style type="text/css">
	    @import "dojoroot/dijit/themes/tundra/tundra.css";
	    @import "dojoroot/dojo/resources/dojo.css"
	</style>

	<script type="text/javascript" src="0_yfit.js"></script>
	<script type="text/javascript" src="0_yfitone.js"></script>
	<script type="text/javascript" src="0_ydnd.js"></script>
	<script>
		function $(e)
		{
			return (typeof(e)==='string') ? document.getElementById(e) : e;
		}
		function observe(elem, event, func, capture)
		{
			if (elem.attachEvent)
				elem.attachEvent('on'+event, func);
			else
				elem.addEventListener(event, func, capture?true:false);
		}
		function toString(e)
		{
			var msg = "" + e;
			if (arguments.length > 1)
				for (var i = 1; i < arguments.length; i++)
					msg += "\n    " + arguments[i] + "=" + e[arguments[i]];
			else
				for (var p in e)
					msg += "\n    " + p + "=" + e[p];
			return msg;
		}

		/////////////////////////////////////////////////////////////////////

		function go()
		{
			window.eval($('input').value);
		}
		function debugOnKey(evt)
		{
			evt = evt || window.event;
		}
		observe(document, 'keydown', debugOnKey);
		function debugOnMouse(evt)
		{
			evt = evt || window.event;
		}
		observe(document, 'click', debugOnMouse);

		function test2(msg)
		{
			alert(msg || 'hi');
		}
		
		/////////////////////////////////////////////////////////////////////
		
	</script>

	<!-- "web widget implementation" -->	
	<script type="text/javascript">
		var PageLoader = {
			tabClass : function(a){
				var c = document.getElementById(a.getAttribute('rel'));
				c.style.display='block';
				var arrays = jQuery.find("div.pop_div");
				for(var i=0;i<arrays.length;i++){
					var array = arrays[i];
					if(array.id != (a.getAttribute('rel'))) {
						array.style.display='none';
					}
				}
			},
			load : function() {
				var selector,injector,nodes;
				for(selector in registry){
					nodes = jQuery.find(selector);  
					injector = registry[selector];	
					for(var i=0;i<nodes.length; i++){
						injector(nodes[i]);			
					}
				}
			}
		};
		var registry = {};
		registry['a.pop'] = function(aLink){
			aLink.onclick = PageLoader.tabClass.bind(PageLoader,aLink);
		};
	</script>
	
	
	<style>

/* Top & Header */
.top {
	background: url(images/top.gif);
	color: #FFF;
	height: 30px;
	width: 100%;
}
.top h1 {
	font: bold 2em sans-serif;
	padding: 8px 16px 0;
}
.top h1 span {
	font: normal 60% Verdana,sans-serif;
}

.header {
	background: url(images/header.gif); 
	height: 101px;
	width: 939px; 
}
#sidebar {
	border:1px solid #333333;
	width:10%;
	height:80%;
	margin: 0; padding: 0; 
	background-color: #FFFFFF; 	
	float: left;
}
#sidebar h1 {
	font-size: 70%;
	width: 10%;
	margin: 10px 0 0 0; 
	padding: 4px 0 4px 8px; 
	font: bold 70% Arial, Sans-Serif;
	color: #FFF;
	background: #333; 
	letter-spacing: 1px;	
}
#sidebar .left-box {
	margin: 0 0 5px 0;	
	background: #FFF;
}
#sidebar ul.sidemenu {
	list-style: none;
	text-align: left;
	margin: 3px 0px 8px 0; padding: 0;
	text-decoration: none;		
}
#sidebar ul.sidemenu li {
	font-size:70%;
	border-bottom: 1px solid #f2f2f2; 
	background: url(bullet.gif) no-repeat 3px 2px;	
	padding: 3px 5px 3px 5px;
	margin: 0;	
}
#sidebar ul.sidemenu a {
	font-weight: bolder;
	padding: 3px 0px;	
	background: none;
}
/* Menu */
div.sidebar {
	float:left;
	width:10%;
	height:80%;
	border:1px solid #EEEEEE;
}
div.menu ul {
	float: left;
	margin: 0 1px 0 0;
}
div.menu li {
	list-style-image: none;
}
div.menu a {
	background: #4B4B4B;
	color: #DDD;
	display: block;
	font-family: sans-serif;
	font-size: 85%;
	padding: 5px 0 5px 8px;
	text-decoration: none;
	width: 100px;
}
div.menu a#current {
	background: #666; color: #FFF;
}
div.menu a:hover {
	background: #555; color: #FFF;
}
div.menu li {
	list-style-type: none;
	margin: 0 0 1px 0;
	padding: 0;
}
#top_login{
	font: 1em "Trebuchet MS",sans-serif;
}

#right{
	background-color:#ffffff;
	border:0px solid #333333;
	width:89.5%;
	height:80%;
	float:right;
}
/* Footer */
div.footer {
	background: #F0F0F0 url(images/bgdate.gif) repeat-x;
	border: 1px solid #EEE;
	color: #FFF;
	margin-left: 6px;
	width: 100%;
}
div.footer .copyright {
	padding: 6px 12px;
}
div.footer a {
	color: #FFF;
	font: bold 1em "Trebuchet MS",sans-serif;
	text-decoration: none;
}
	</style>
</head>
<body>
<%
	//get current user
	String userid = (String) request.getAttribute("user");
	if(null != userid) {
		out.println("Please login ESMS first.");%>
		
		<a href='/ESMS_china'>Login</a>
		
		<%
		//throw new UserException("Please login ESMS first.");
		}  else {
%>
<div class="top"><h1>企业1</h1>
</div>
<div class="top_login" id="top_login" align='right' width=100% style="border-bottom:1px dashed #B9B9B9">
	<table>
		<tr>

		</tr>
	</table>
</div>
	
	
<div style="height:85%; border:solid 1px #000;">
	<div id="sidebar" class="sidebar" align='center' style="width:10em; height:100%; float:left;">
		<%@ include file="/entity_left.jsp" %>
	</div>
	<div id="b" style="width:10px; height:100%; float:left; overflow:hidden; background:#0F0; position:relative;"
		onmousedown="Ydnd.startResizingWidth(event, this)">
	</div>
	<div id="right" align='center' fitWidth='auto' style="height:100%; float:left;"
		minWidth="200">
		<%@include file="/entity_right.jsp" %>
	</div>
</div>
	
<div class="footer" align='center'>
	<div class="copyright" id="copyright">&copy; 2009 <a href="index.html">企业人才服务有限公司</div>
</div>

<script type="text/javascript">
	actionPage = function(dest) {
		var url = dest;
		var myAjax = new Ajax.Updater('right',url,{method:'get',evalScripts: true});
	}
</script> 
<%} %>
</body>
</html>

<%@ page contentType="text/html;charset=utf-8"%>